<div class="header">
  <back-Btn></back-Btn>
  借物资
</div>
<div class="container finance">
  <div class="list f_sk">
    <div class="list-item icon_more required">
      <div class="item-label">物资类型</div>
      <div class="flow-content" style="padding-right:0">
        <select ng-model="param.materialType" ng-options="item.value as item.value for item in WZTypeList"
          ng-change="getusers()">
          <option value="">选择物资类型</option>
        </select>
      </div>
    </div>
    <div class="list-item icon_more">
      <div class="item-label">预计归还日期</div>
      <div class="flow-content">
        <input type="text" date-directive ng-model="param.returnDate" />
      </div>
    </div>
    <div class="list-item required icon_more" ng-click="choosesigners()">
      <div class="item-label">签发人</div>
      <div class="flow-content">
        {{ param.sender }}
      </div>
    </div>
    <div rela-module taskid="process_id" param="param" rel="WZ_MODULE"></div>
    <div class="list-item list-item-textarea required">
      <div class="item-label">借用事由</div>
      <div class="flow-content">
        <textarea cols="30" rows="4" ng-model="param.borrowReason"></textarea>
      </div>
    </div>
    <label class="list-item">
      <p class="item-label">备注</p>
      <p class="flow-content">
        <input type="text" ng-model="param.remark" />
      </p>
    </label>
    <div class="list-item icon_more" ng-click="choosepeople()">
      <div class="item-label">审批人员</div>
      <div class="flow-content">{{ param.aduitUserNames }}</div>
    </div>
    <!--  借用明细-->
    <div class="list-item icon_more required" ng-click="choosewz()">
      <div class="item-label">借用明细</div>
      <div class="flow-content"></div>
    </div>
    <div class="list table-list">
      <div class="info-title" ng-show="param.details.length">借用明细</div>
      <div class="table-item" ng-repeat="item in param.details" ng-class="{mt0:$first}">
        <div class="delete_icon icon_del" ng-click="deletedItem($index)"></div>
        <div class="content" ng-class="{cur:$index==index}" ng-click="resetlist()" ng-swipe-left="swipe($index)"
          ng-swipe-right="swipe(-1)">
          <div class="list-item">
            <div class="item-label">物资名称</div>
            <div class="flow-content">
              {{ item.materialName || item.mname }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">单位</div>
            <div class="flow-content">{{ item.unit }}</div>
          </div>
          <div class="list-item" ng-show="item.specifications">
            <div class="item-label">规格型号</div>
            <div class="flow-content">{{ item.specifications }}</div>
          </div>
          <div class="list-item required">
            <div class="item-label">借用数量</div>
            <div class="flow-content">
              <input type="text" placeholder="请输入" ng-model="item.total" tel-directive />
            </div>
          </div>
          <!-- <div class="list-item">
            <div class="item-label">是否需要归还</div>
            <div class="flow-content">
              {{ item.needReturn ? "需要归还" : "无需归还" }}
            </div>
          </div> -->
        </div>
      </div>
    </div>

    <!-- 自定义字段 -->
    <div user-defined param="param" field-map="param.fieldMap" validation="validation" uid="param.uid"
      processid="param.processInstanceId"></div>
    <!-- 附件 -->
    <div class="file-upload" file-upload file-data="param.attachment">
    </div>
    <!-- 审查日志 -->
    <div log-list status="processStatus" taskid="process_id"></div>

  </div>
  <!-- 删除流程 -->
  <div delete-flow uid="param.uid" id="{{ param.processInstanceId }}" submit="submit" validate="validate"></div>
</div>